import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router';
import Vant from 'vant';
import 'vant/lib/index.css';
import { Toast } from 'vant';
import myTool from "./tool";
import routes from './routers'
Vue.use(Toast);
Vue.use(Vant);
Vue.use(VueRouter)
import VuevideoPlayer from 'vue-video-player';
import 'video.js/dist/video-js.css';


Vue.use(VuevideoPlayer);

const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

const axios = require('axios')
Vue.prototype.scroll = myTool.add_wheel
Vue.prototype.axios = axios
axios.defaults.baseURL = myTool.baseURL




Vue.config.productionTip = false
const router = new VueRouter({
  routes: routes.routes
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
